import cv2
import numpy

img1 = cv2.imread("d:\\test\\opencv-logo-white.png")
img2 = cv2.imread("d:\\test\\girl_mini.jpg")

#尺寸一致的图像，根据权重融合
dst = cv2.addWeighted(img1, 0.2, img2, 0.8, 0)

cv2.imshow('dst', dst)
cv2.waitKey(0)
cv2.destroyAllWindows()